import tkinter as tk
import tkinter.ttk as ttk
from .page_io_input import PageInput
from .page_io_output import PageOutput

class PageIo(ttk.Frame):
    def __init__(self, parent):
        super().__init__(parent)
        self.input = PageInput(self)
        self.output = PageOutput(self)

    def init_ui(self, controller):
        self.input.init_ui(controller)
        self.output.init_ui(controller)
        self.input.grid(row=0, column=0, sticky="nsew")
        self.output.grid(row=1, column=0, sticky="nsew")
        self.grid_columnconfigure(0, weight=1)
        self.grid_rowconfigure(0, weight=1)